<?php
namespace Home\Controller;
use Think\Controller;
class RemarkController extends Controller {
	
	static $PATH = 'path';
	
	static $REMARK = 'remark';

    /**
     *
     */
    public function remarkList(){
        $Remark = M('Remark');
		$this->remark = $Remark->select();
		$this->display();
    }

    /**
     *
     */
    public function addRemark(){
    	$Remark = M('Remark');
    	$path = $_GET[self::$PATH];
    	$remark = $_GET[self::$REMARK];
    	echo $path;
    	$data[self::$PATH] = $path;
    	$data[self::$REMARK] = $remark;
    	$Remark->add($data);

        $this->remarkList();
    }
}
?>